﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DeploymentTool.Model
{
    public class DepItemReplace : DepItem
    {
        public const string ReplaceValuePropertyName = "ReplaceValue";
        private string _replaceValue;
        public string ReplaceValue
        {
            get
            {
                return _replaceValue;
            }

            set
            {
                if (_replaceValue == value)
                {
                    return;
                }

                RaisePropertyChanging(ReplaceValuePropertyName);
                _replaceValue = value;
                RaisePropertyChanged(ReplaceValuePropertyName);
            }
        }
    }

    public class DepItemReplaceComparer : IEqualityComparer<DepItemReplace>
    {
        public bool Equals(DepItemReplace x, DepItemReplace y)
        {
            return x.Value == y.Value && x.ReplaceValue == y.ReplaceValue;
        }

        public int GetHashCode(DepItemReplace obj)
        {
            throw new NotImplementedException();
        }
    }
}
